package moocloudstudio.minder.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotBlank;

/**
 * 思维导图信息
 */
@ApiModel(value = "思维导图")
@Document
@Data
public class MinderMap extends MinderEntity{
    @ApiModelProperty(value = "所属用户id", position = 1)
    @NotBlank(message = "用户id不能为空")
    private String userId;
    @ApiModelProperty(value = "标题", position = 2)
    @NotBlank(message = "标题不能为空")
    private String title;
    @ApiModelProperty(value = "数据", position = 3)
    @NotBlank(message = "无效的思维导图数据")
    private String data;
    @ApiModelProperty("分享信息")
    private MapShare mapShare;
}
